//
//  WDCalendarMonthCell.m
//  teatCalendar
//
//  Created by 解向前 on 2018/3/6.
//  Copyright © 2018年 com.test. All rights reserved.
//

#import "WDCalendarMonthCell.h"

@implementation WDCalendarMonthCell


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.calendarPageView = [[WDCalendarPageCollectionView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        [self.contentView addSubview:self.calendarPageView];
    }
    return self;
}

- (void)setModel:(WDCalendarMonthModel *)model {
    _model = model;
    self.calendarPageView.models = model.dayModels;
}

@end
